package com.zsgl.web;

import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

import com.zsgl.test.SimpleTest;
import com.zsgl.test.SimpleTestAdapter;
import com.zsgl.test.SpringControllerTest;
import com.zsgl.test.SpringControllerTestAdapter;
import com.zsgl.test.SpringTest;
import com.zsgl.test.SpringTestAdapter;

public aspect AnnotationTestManager {
	
	declare  parents : (@SimpleTest *) extends SimpleTestAdapter;

	declare  parents : (@SpringControllerTest *) extends SpringControllerTestAdapter;

	declare  parents : (@SpringTest *) extends SpringTestAdapter;

	declare @type : (@SpringControllerTest(true) *) : @Transactional;
	
	declare @type : (@SpringControllerTest(true) *) : @RunWith(SpringJUnit4ClassRunner.class);

	declare @type : (@SpringControllerTest(true) *) : @ContextConfiguration(locations = "classpath*:META-INF/spring/applicationContext.xml");

}
